﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MemeberMain.Master" AutoEventWireup="true" CodeBehind="MedicalForum.aspx.cs" Inherits="outREACH.MedicalForum" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
<div id="header-wrapper">
     
		<div id="header">
       
			<div id="menu">
            
				<ul>
					<li><a id="A1" href="~/HomeMem.aspx" runat="server">HOME</a></li>
					<li><a id="A2" href="~/Education/EducationMem.aspx" runat="server">EDUCATION</a></li>
					<li class="current_page_item"><a id="A3" href="~/Medical/MedicalMem.aspx" runat="server">MEDICAL</a></li>
					<li><a id="A4" href="~/Infrastructure/InfrastructureMem.aspx" runat="server">INFRA STRUCTURE</a></li>
					<li><a id="A5" href="~/Donation/DonationMem.aspx" runat="server">DONATION</a></li>
					<li><a id="A6" href="~/ContactUs_Mem.aspx" runat="server">CONTACT US</a></li>
				</ul>
               
			</div>
            
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:ImageButton ID="ImageButton1" runat="server" Height="170px" 
                ImageUrl="~/Images/Untitled-2.png" Width="175px" CausesValidation="False" 
                PostBackUrl="~/HomeMem.aspx" />
		</div>
	</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel4" runat="server">
        <asp:Panel ID="Panel5" runat="server" Height="1030px" style="margin-left: 0px" 
            Font-Size="13pt" ForeColor="Black">
            <asp:Label ID="med" runat="server" Font-Bold="True" Font-Italic="True" 
                Font-Size="20pt" Text="MEDICAL - MEDICAL FORUM"></asp:Label>
            <br />
            <br />
            <asp:Button ID="Button34" runat="server" 
                PostBackUrl="~/Medical/MedForumNewThread.aspx" Text="Start a New Thread" />
            <br />
            <br />
            <br />
            <asp:GridView ID="gvMedForumMain" runat="server" align="center" 
                AutoGenerateColumns="False" DataSourceID="MedForumMain" Width="600px" 
                Height="215px" PageSize="6">
                <Columns>
                    <asp:TemplateField HeaderText="Thread Starter">
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Font-Bold="True" 
                                Text='<%# Eval("userName") %>'></asp:Label>
                            <br />
                            <asp:Image ID="Image2" runat="server" Height="80px" 
                                ImageUrl='<%# Eval("imagePath") %>' Width="80px" />
                            <br />
                            Country:
                            <asp:Label ID="Label4" runat="server" Text='<%# Eval("country") %>'></asp:Label>
                            <br />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="90px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Thread">
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink1" runat="server" Font-Size="14pt" ForeColor="Blue" 
                                NavigateUrl='<%# "MedForumView.aspx?title="+Eval("title")+"&mid="+Eval("MedForumID") %>' 
                                Text='<%# Eval("title") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="dateTimeUpdated" HeaderText="Last Updated" 
                        SortExpression="dateTimeUpdated" />
                    <asp:BoundField DataField="noOfReply" HeaderText="No of Reply" 
                        SortExpression="noOfReply" />
                </Columns>
                <SelectedRowStyle BackColor="Yellow" />
            </asp:GridView>
            <asp:GridView ID="gvMedForumMain0" runat="server" align="center" 
                AutoGenerateColumns="False" DataKeyNames="MedForumID" 
                DataSourceID="MedForumMain" Height="215px" 
                Visible="False" Width="600px" PageSize="6">
                <Columns>
                    <asp:CommandField ShowDeleteButton="True" />
                    <asp:BoundField DataField="MedForumID" HeaderText="MedForumID" 
                        SortExpression="MedForumID" Visible="False" />
                    <asp:TemplateField HeaderText="Thread Starter">
                        <ItemTemplate>
                            <asp:Label ID="Label5" runat="server" Font-Bold="True" 
                                Text='<%# Eval("userName") %>'></asp:Label>
                            <br />
                            <asp:Image ID="Image3" runat="server" Height="80px" 
                                ImageUrl='<%# Eval("imagePath") %>' Width="80px" />
                            <br />
                            Country:
                            <asp:Label ID="Label6" runat="server" Text='<%# Eval("country") %>'></asp:Label>
                            <br />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="90px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Thread">
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink2" runat="server" Font-Size="14pt" ForeColor="Blue" 
                                NavigateUrl='<%# "MedForumView.aspx?title="+Eval("title")+"&mid="+Eval("MedForumID") %>' 
                                Text='<%# Eval("title") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="dateTimeUpdated" HeaderText="Last Updated" 
                        SortExpression="dateTimeUpdated" />
                    <asp:BoundField DataField="noOfReply" HeaderText="No of Reply" 
                        SortExpression="noOfReply" />
                </Columns>
                <SelectedRowStyle BackColor="Yellow" />
            </asp:GridView>
            <br />
            <asp:ObjectDataSource ID="MedForumMain" runat="server" 
                OldValuesParameterFormatString="original_{0}" SelectMethod="GetMedForum" 
                TypeName="outREACH.App_Code.MedForum" 
                DataObjectTypeName="outREACH.App_Code.MedForum" 
                DeleteMethod="DeleteMedForum"></asp:ObjectDataSource>
        </asp:Panel>
    </asp:Panel>
</asp:Content>
